Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

feature/settings/src/commonMain/kotlin/org/meshtastic/feature/settings/component/ContrastPickerDialog.kt 3d2b21843e976f552f8b91be67da0746466e5b8e (3d2b2184) Text, 2.46 KB

T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tf0883e@fileTb4b4b4:Te6edf3SuppressTb4b4b4(Ta5d6ff"Ta5d6ffMatchingDeclarationNameTa5d6ff"Tb4b4b4)

Tff7b72package T7ee787org.meshtastic.feature.settings.component

Tff7b72import T7ee787androidx.compose.foundation.layout.Column
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787org.jetbrains.compose.resources.StringResource
Tff7b72import T7ee787org.jetbrains.compose.resources.stringResource
Tff7b72import T7ee787org.meshtastic.core.resources.Res
Tff7b72import T7ee787org.meshtastic.core.resources.choose_contrast
Tff7b72import T7ee787org.meshtastic.core.resources.contrast_high
Tff7b72import T7ee787org.meshtastic.core.resources.contrast_medium
Tff7b72import T7ee787org.meshtastic.core.resources.contrast_standard
Tff7b72import T7ee787org.meshtastic.core.ui.component.ListItem
Tff7b72import T7ee787org.meshtastic.core.ui.component.MeshtasticDialog
Tff7b72import T7ee787org.meshtastic.core.ui.theme.ContrastLevel

T8b949e/** Contrast level options matching [ContrastLevel] ordinal values. */
Tff7b72enum Tff7b72class T56d364ContrastOptionTb4b4b4(Tff7b72val Te6edf3labelTb4b4b4: Te6edf3StringResourceTb4b4b4, Tff7b72val Te6edf3levelTb4b4b4: Te6edf3ContrastLevelTb4b4b4) Tb4b4b4{
Te6edf3STANDARDTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3contrast_standardTb4b4b4, Te6edf3level Tff7b72= Te6edf3ContrastLevelTb4b4b4.Te6edf3STANDARDTb4b4b4)Tb4b4b4,
Te6edf3MEDIUMTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3contrast_mediumTb4b4b4, Te6edf3level Tff7b72= Te6edf3ContrastLevelTb4b4b4.Te6edf3MEDIUMTb4b4b4)Tb4b4b4,
Te6edf3HIGHTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3contrast_highTb4b4b4, Te6edf3level Tff7b72= Te6edf3ContrastLevelTb4b4b4.Te6edf3HIGHTb4b4b4)Tb4b4b4,
Tb4b4b4}

T8b949e/** Shared dialog for picking a contrast level. Used by both Android and Desktop settings screens. */
Tf0883e@Composable
Tff7b72fun Td2a8ffContrastPickerDialogTb4b4b4(Te6edf3onClickContrastTb4b4b4: Tb4b4b4(Tffa657IntTb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4, Te6edf3onDismissTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4) Tb4b4b4{
Te6edf3MeshtasticDialogTb4b4b4(
Te6edf3title Tff7b72= Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3choose_contrastTb4b4b4)Tb4b4b4,
Te6edf3onDismiss Tff7b72= Te6edf3onDismissTb4b4b4,
Te6edf3text Tff7b72= Tb4b4b4{
Te6edf3Column Tb4b4b4{
Te6edf3ContrastOptionTb4b4b4.Te6edf3entriesTb4b4b4.Te6edf3forEach Tb4b4b4{ Te6edf3option Tff7b72-Tff7b72>
Te6edf3ListItemTb4b4b4(Te6edf3text Tff7b72= Te6edf3stringResourceTb4b4b4(Te6edf3optionTb4b4b4.Te6edf3labelTb4b4b4)Tb4b4b4, Te6edf3trailingIcon Tff7b72= Tff7b72nullTb4b4b4) Tb4b4b4{
Te6edf3onClickContrastTb4b4b4(Te6edf3optionTb4b4b4.Te6edf3levelTb4b4b4.Te6edf3valueTb4b4b4)
Te6edf3onDismissTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}Tb4b4b4,
Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.3 - Generated in 0.18s